package com.zhuziym.utils;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.pentaho.di.core.Result;

/**
 * @Title: SysJobEntryResult.java
 * @Package com.zhuziym.utils
 * @Description: TODO(job转换 )
 * @author 作者 grq
 * @version 创建时间：2018年11月3日 下午9:31:31
 *
 */
public class SysJobEntryResult implements Serializable {

	private static final long serialVersionUID = 1L;
	private Result result;
	private String jobEntryName;
	private int jobEntryNr;

	private String comment;
	private String reason;

	private Date logDate;
	private String jobEntryFilename;
	private String logChannelId;

	private boolean checkpoint;

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
//		return "SysJobEntryResult [result=" + result + ", jobEntryName=" + jobEntryName + ", jobEntryNr=" + jobEntryNr + ", comment=" + comment + ", reason=" + reason + ", logDate=" + logDate + ", jobEntryFilename=" + jobEntryFilename + ", logChannelId=" + logChannelId + ", checkpoint=" + checkpoint + "]";
	}

	public Result getResult() {
		return result;
	}

	public void setResult(Result result) {
		this.result = result;
	}

	public String getJobEntryName() {
		return jobEntryName;
	}

	public void setJobEntryName(String jobEntryName) {
		this.jobEntryName = jobEntryName;
	}

	public int getJobEntryNr() {
		return jobEntryNr;
	}

	public void setJobEntryNr(int jobEntryNr) {
		this.jobEntryNr = jobEntryNr;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Date getLogDate() {
		return logDate;
	}

	public void setLogDate(Date logDate) {
		this.logDate = logDate;
	}

	public String getJobEntryFilename() {
		return jobEntryFilename;
	}

	public void setJobEntryFilename(String jobEntryFilename) {
		this.jobEntryFilename = jobEntryFilename;
	}

	public String getLogChannelId() {
		return logChannelId;
	}

	public void setLogChannelId(String logChannelId) {
		this.logChannelId = logChannelId;
	}

	public boolean isCheckpoint() {
		return checkpoint;
	}

	public void setCheckpoint(boolean checkpoint) {
		this.checkpoint = checkpoint;
	}

}
